﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_maintain.TMS_accident
{
    public class TMS_AccAppService : ApplicationService
    {
        private readonly ITMS_accidents _ITMS_repairs;
        public TMS_AccAppService(ITMS_accidents ITMS_repairs)
        {
            _ITMS_repairs = ITMS_repairs;
        }

        public async Task<PageResponse<TMS_accidentDto>> GetAcc(string Acctitel, string AccNumber, int pageindex = 1, int pagesize = 5)
        { 
            return await  _ITMS_repairs.GetAcc(Acctitel, AccNumber, pageindex, pagesize);
        }

        public async Task<int> AccAdds(TMS_accidentDto info)
        { 
            return await _ITMS_repairs.AccAdds(info);
        }

        public async Task<int> DeletAcc(string Id)
        {
            return await _ITMS_repairs.DeletAcc(Id);
        }

        public async Task<int> UpdateAccup(TMS_accidentDto tMS_Induction)
        {
            return await _ITMS_repairs.UpdateAccup(tMS_Induction);
        }
    }
}
